package com.ruoyi;

import com.ruoyi.binance.api.BaseApi;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 启动程序
 *
 * @author ruoyi
 */
@EnableScheduling
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
public class RuoYiApplication
{
    public static void main(String[] args)
    {
        SpringApplication.run(RuoYiApplication.class, args);
        System.out.println("量化交易系统启动成功 ");
        //检查binance网络是否联通
        System.out.println("binance网络:" + BaseApi.ping());
        //同步系统时间
        System.out.println("binance时间:" + DateUtils.getFormatTime(BaseApi.time()));
    }
}
